package com.woniuxy.school.dietary.food.model.from;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

@Data
@ApiModel(description = "修改菜品数量使用的模型对象")
public class UpdateFoodFrom {
    @ApiModelProperty(value = "菜品id")
    @NotNull(message = "菜品id不能为空")
    private Long foodId;
    @ApiModelProperty(value = "修改后的菜品数量")
    @Positive(message = "菜品数量必须为正数")
    @NotNull(message = "修改的菜品数量不能为空")
    private Integer count;
    @NotNull(message = "修改的冻结数量不能为空")
    @ApiModelProperty(value = "冻结数量")
    private Integer freeze;
}
